package cn.qyd.javathread;

/**
 * @author 邱运铎
 * @date 2024-03-14 13:45
 */
public class ExtendThreadDemo extends Thread {
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+ "-------" + i);
        }
    }

    public static void main(String[] args) {
        Thread thread = new ExtendThreadDemo();
        thread.start();
    }
}
